home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / prseries.doc < prev    next >
Text File  |  1987-07-15  |  1KB  |  45 lines

  1.  
  2.  
  3.         NAME
  4.                 pr_nl -- print a carriage return/line feed to printer
  5.                 pr_puts -- print a string to the printer
  6.                 pr_putline -- print a string, and a cr/lf to the printer
  7.                 pr_eject -- send a formfeed to the printer
  8.                 pr_carret -- send a carriage return to the printer
  9.                 pr_set -- set the number of the current printer
  10.                 pr_putc -- send a character to the printer
  11.  
  12.         SYNOPSIS
  13.                all routines except pr_putc are type void
  14.                unless noted, no parameters are needed:
  15.                pr_putline(str);  char *str;
  16.                pr_puts(str);     char *str;
  17.                pr_set(num);      int num 0, 1, or 2
  18.                r = pr_putc(ch);  char ch;  int r; (returned status)
  19.  
  20.  
  21.         DESCRIPTION
  22.         This series of routines use the low level functions
  23.         blpr() and blprstat() to access the LPT? ROM-BIOS drivers
  24.         directly.  pr_putc() returns the same status that is returned
  25.         by blprstat().  Be sure to use pr_set() to set which LPT is
  26.         to be accessed.  Note that the library defaults to LPT1:,
  27.         and pr_set() may be ignored if that printer is to be used.
  28.  
  29.  
  30.         EXAMPLE
  31.  
  32.            pr_set(LP1);        /* LP1, LP2, LP3 defined in smdefs.h */
  33.            pr_putline("Hello World");
  34.            pr_eject();
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.         This function is found in SMDLx.LIB for the Datalight Compiler
  45.